<?php
include("config.php"); 
$idCN=$_GET['idCN'];
$KhoaHoc=$_GET['KhoaHoc'];
$id_chuyennganhcohp=$_GET["id"];
$loaihocphan=$_GET["x"];
$nhomhocphan=$_GET["y"];
$hk_dukien=$_GET["z"];

$str = "update chuyennganhcohocphan 
		set LOAIHOCPHAN=".$loaihocphan.", NHOMHOCPHAN=".$nhomhocphan.", HK_DUKIEN=".$hk_dukien."
		where ID_CHUYENNGANHCOHP=".$id_chuyennganhcohp;
$result = mysql_query($str);	
if($result){
	$path="index.php?luu=ss&idCN=".$idCN."&KhoaHoc=".$KhoaHoc."&idcnhp=".$id_chuyennganhcohp;				
	}
	else{
		$path="index.php";
	}
echo "<script>location.href='".$path."'</script>";
?>